
#include <help.h>

void help (QString cmd)
{
    int case_id = -1;
    QStringList cmd_list;
    cmd_list << "config" << "start";
    for(int i=0;i<cmd_list.count();i++)
    {
        if(cmd_list.at(i)==cmd)
        {
            case_id = i;
            break;
        }
    }

    switch (case_id)
    {
        case 0: cout<<config_text.toStdString()<<endl;
                break;
        case 1: cout<<start_text.toStdString() <<endl;
                break;
        default:
            cout <<"无效命令:"<<cmd.toStdString()<<error_text.toStdString()<<endl;
            break;
    }
}
